import {httpRequest} from '@/request/https'

export default {
    /**
     * 船运合同分页查询
     * */
    postShippingPage: params => httpRequest({url: '/con/conShipping/page', method: 'post', params}),
    /**
     * 新增船运合同
     * */
    postAddShipping: params => httpRequest({url: '/con/conShipping', method: 'post', params}),
    /**
     * 修改船运合同
     * */
    putShipping: params => httpRequest({url: '/con/conShipping', method: 'put', params}),
    /**
     * 删除船运合同
     * */
    deleteShipping: params => httpRequest({url: `/con/conShipping/${params}`, method: 'delete'}),
    /**
     * 申请船运合同优秀模板
     * */
    postShippingExcellent: params => httpRequest({url: `/con/conShipping/excellent`, method: 'post', params}),
    /**
     * 查询船运合同详情
     * */
    getShippingInfo: params => httpRequest({url: `/con/conShipping`, method: 'get', params}),
    /**
     * 船运合同导出
     * */
    exportShipping: params => httpRequest({url: `/con/conShipping/export`, method: 'post', params}),
    /**
     * 补充合同原件
     * */
    supppleShippingContract: params => httpRequest({url: `/con/conShipping/supplementaryContractFile`, method: 'post', params}),
    /**
     * 船运合同获取OCR信息
     * */
    getShipOcrInfo: params => httpRequest({url: `/con/conShipping/fieldLocation`, method: 'get', params})
}
